﻿using decode.models;
namespace decode
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚密码解密
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            String ciphertext, key;
            //用户输入明文和密钥
            Console.Write("请输入密文（大写）：");
            ciphertext = Console.ReadLine();
            Console.Write("请输入密钥（大写）：");
            key = Console.ReadLine();
            //解密
            MyDecoder mydecoder = new MyDecoder();
            mydecoder.Ciphertext = ciphertext;
            mydecoder.Key = key;
            mydecoder.Decoder();
            Console.WriteLine($"对应明文为：{mydecoder.Plaintext}");
            Console.ReadKey();
        }
    }
}